package com.huaxin.hxcloud.work;

import android.app.Activity;
import android.content.Context;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.huaxin.common.Entity.RepairRecord;
import com.huaxin.hxcloud.R;

import java.util.List;

/**
 * Created by Administrator on 2016/12/29.
 * 首创维修记录二级adapter
 */

public class HxScTwoRepairRecordAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    private HxScRepairRecordActivity mActivity;
    private Context                  mContext;

    public HxScTwoRepairRecordAdapter(HxScRepairRecordActivity activity) {
        super(R.layout.item_h_image);
        this.mActivity = activity;
        this.mContext = activity;
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        ImageView ivImg = helper.getView(R.id.iv_img);
        mActivity.loadNetImg(ivImg, item);

    }
}